package com.worker.ssm.mapper;

import com.worker.ssm.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {

    /**
     * 根据Id查询员工的信息
     */
    Employee getEmployeeById(Integer empId);

    /**
     * 查询所有的员工信息
     */
    List<Employee> getAllEmployee();

    /**
     * 插入员工
     */
    int insertEmployee(Employee employee);

    /**
     * 删除员工
     */
    int deleteEmployee(Integer empId);

    /**
     * 更新员工
     */
    int updateEmployee(@Param("empId") Integer empId,@Param("emp") Employee emp);
}
